doctype html
html
    head
        meta(charset='utf-8')
        link(rel='icon' href='resources/favicon.ico')
        script(src='resources/lib/jquery-2.1.4.min.js')
        title= keyword + ' - GloBr 搜索'
    body
        #container
            each result in list
                .card
                    p.card-title !{result.title}
                    p !{result.content}
                    p.url
                        a(href='#{result.link}', target='_blank')= result.domain
            .card
                p
                    | 使用本搜索，请遵守相关法律法规。
                    a#last.page(href='/search.html?keyword=#{keyword}&pagNum=#{index - 2}') 上一页
                    - for(var i=1;i<=5;i++) {
                    a.page(index='#{i}',href='/search.html?keyword=#{keyword}&pagNum=#{i}') #{i}
                    - }
                    a.page(index='0') .
                    a#next.page(href='/search.html?keyword=#{keyword}&pagNum=#{index}') 下一页
                p.url
                    a(href='#{sourceUrl}', target='_blank') www.google.com
            .card.announce
                p 我是公告君，祝大家使用愉快，如果搜索出来的资料有帮助，请默默的感谢伟大的谷歌。
                p.url
                    a(href='http://www.bluerain.io', target='_blank') www.bluerain.io
            .card.search
                form(action='/search.html', method='get')
                    input#keyword(onclick='this.select()', required='', name='keyword', placeholder='#{keyword}')
    link(rel='stylesheet', type='text/css', href='resources/search.css')
    link(rel='stylesheet', type='text/css', href='resources/css/common.css')
    script(src='resources/search.js')
    script(src='resources/search.uncomp.js')
